package iedcyt.acute.controller.listeners.authorMerge;

import iedcyt.acute.model.AuthorMergeModel;
import iedcyt.acute.view.AuthorMergeView;
import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Listener;

public class DocCandidateSelectionListener implements Listener {

	private AuthorMergeModel _model;
	private AuthorMergeView _view;
	
	public DocCandidateSelectionListener(AuthorMergeView view, AuthorMergeModel model) {
		this._model = model;
		this._view = view;
	}
	
	public void handleEvent(Event event) {

		Integer idDoc = _view.getDocCandidateSelectedID();
		_model.setSelected_candidateIdDoc(idDoc);

	}

}
